<?php
	$username = $_POST['username'];
	$password = $_POST['password'];

	$connection = mysql_connect("localhost", "root", "zxt@ljj");
	mysql_select_db("light_blogs");

	$result = mysql_query("select * from users where username = '$username' and password = '$password'");
	if($row = mysql_fetch_array($result)) {
		echo 1;
	} else {
		echo 0;
	}
?>